﻿@model List<FCTC_Web.Models.Vehicle>
<div class="anlie">
    <div class="anlie_2">
        热卖车型推荐</div>
    <div class="tuijian">
        <ul>
            @for (int i = 0; i < Model.Count && i<5; i++)
            {                  
                <li>
                   @if (Model[i].Imgs != null && Model[i].Imgs.Count > 0)
                    {
                        <a href="@Url.Action("Details", "VehicleBusiness", new { id = Model[i].ID })">
                            <img src="@Url.Action("ShowImage", "Image", new { id = Model[i].Imgs[0].ID })"   alt="tuijian" />
                        </a>
                    }
                    else
                    {
                        <a href="@Url.Action("Details", "VehicleBusiness", new { id = Model[i].ID })">
                            <img src="/images/moren_car.jpg" alt="" />
                        </a>
                    }
                    <p>
                        @Model[i].CarBrand-@Model[i].VehicleStyle</p>
                </li>
            }
        </ul>
    </div>
</div>
